<template>
  <div>
    这是<el-tag>货车接单系统</el-tag>的首页
  </div>
</template>

<script setup>
import useStore from '@/store/index'
import router from "@/router";
import {ElMessage} from "element-plus";

const {userStore} = useStore()

function logout() {
  userStore.logout()
  router.push('/login')
  ElMessage.success('退出登录成功')
}
</script>

<style scoped>

</style>